package com.song.EMS.mvc;

import java.lang.reflect.Method;

/**映射对象
 * @author song
 */
public class Mapping {
    /**
     * 对象
     */
    private Object object;
    /**
     * 方法
     */
    private Method method;
    /**
     * 方法的返回类型
     *  TEXT 文本
     *  VIEW 跳转
     */
    private DispatcherType type;

    public Mapping(Object object, Method method, DispatcherType type) {
        this.object = object;
        this.method = method;
        this.type = type;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public DispatcherType getType() {
        return type;
    }

    public void setType(DispatcherType type) {
        this.type = type;
    }
}
